<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
    <div></div>
</body>
<script>
  //利用axios发起get请求
  axios.get('https://api.nba.dasheng.tv/api/nba/home?uin=')
    .then(function(response){
        console.log(response.data.data);
    })

  axios.get('https://api.nba.dasheng.tv/api/nba/home',{
      params:{
        uin: 123123
      }
    })
    .then(function(response){
      console.log(response)
    })
    .catch(function(error){
      console.log(error)
    })

  axios.post('/user',{
      firstName:'name',
      lastName:'fiasod'
    })
    .then(function(response){
      console.log(response)
    })
</script>
</html>
